using System;
using System.Threading;
using System.Windows.Forms;

namespace SuperBall3D
{
#if WINDOWS || XBOX
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            using (SuperBallGame game = new SuperBallGame())
            {
#if DEBUG
                Thread t = new Thread(gme => Application.Run(new LevelEditor((SuperBallGame)gme)));
                t.SetApartmentState(ApartmentState.STA);
                t.Start(game);
#endif
                game.Run();
#if DEBUG
                t.Abort();
#endif
            }
        }
    }
#endif
}

